package general.guicontrols.clusterpanels;

import general.art.Node;

import java.awt.Graphics;
import java.awt.Rectangle;
import java.awt.event.MouseAdapter;
import javax.swing.JLabel;


public class NodePanel extends JLabel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 * @param n
	 * @return
	 */
	public NodePanel(final Node n, MouseAdapter d ){

		super(n.getName());
		
	
		this.addMouseListener(d);

	}
	
	@Override
	public void paint(Graphics g){
		super.paint(g);
		
		
		Rectangle r = this.getBounds();
		
		g.drawOval(r.x, r.y, r.width, r.height);
		
	}
	
	
}
